package com.tyao.note.model;

import java.util.Date;

/**
 *   
 *
 *
 * @mbg.generated do_not_delete_during_merge Fri Jul 13 16:09:46 CST 2018
 */
public class TSUser {
    private Integer id;

    /**
     * 用户名
     */
    private String username;

    /**
     * 密码
     */
    private String password;

    /**
     * 手机号
     */
    private String phone;

    /**
     * 邮箱
     */
    private String email;
    /**
     * 性别
     */
    private String gender;
    /**
     * 默认状态
     */
    private int state;
    /**
     * 创建时间
     */
    private Date createTime;
    
    /**
     * 修改时间
     */
    private Date modifiedTime;
    /**
     * 备注
     */
    private String remark;
    /**
     * 用户角色信息
     */
    private TSRole tsRole;

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column t_s_user.id
     *
     * @return the value of t_s_user.id
     *
     * @mbg.generated Fri Jul 13 16:09:46 CST 2018
     */
    public Integer getId() {
        return id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column t_s_user.id
     *
     * @param id the value for t_s_user.id
     *
     * @mbg.generated Fri Jul 13 16:09:46 CST 2018
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column t_s_user.username
     *
     * @return the value of t_s_user.username
     *
     * @mbg.generated Fri Jul 13 16:09:46 CST 2018
     */
    public String getUsername() {
        return username;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column t_s_user.username
     *
     * @param username the value for t_s_user.username
     *
     * @mbg.generated Fri Jul 13 16:09:46 CST 2018
     */
    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column t_s_user.password
     *
     * @return the value of t_s_user.password
     *
     * @mbg.generated Fri Jul 13 16:09:46 CST 2018
     */
    public String getPassword() {
        return password;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column t_s_user.password
     *
     * @param password the value for t_s_user.password
     *
     * @mbg.generated Fri Jul 13 16:09:46 CST 2018
     */
    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column t_s_user.phone
     *
     * @return the value of t_s_user.phone
     *
     * @mbg.generated Fri Jul 13 16:09:46 CST 2018
     */
    public String getPhone() {
        return phone;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column t_s_user.phone
     *
     * @param phone the value for t_s_user.phone
     *
     * @mbg.generated Fri Jul 13 16:09:46 CST 2018
     */
    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column t_s_user.email
     *
     * @return the value of t_s_user.email
     *
     * @mbg.generated Fri Jul 13 16:09:46 CST 2018
     */
    public String getEmail() {
        return email;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column t_s_user.email
     *
     * @param email the value for t_s_user.email
     *
     * @mbg.generated Fri Jul 13 16:09:46 CST 2018
     */
    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    
	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public TSRole getTsRole() {
		return tsRole;
	}

	public void setTsRole(TSRole tsRole) {
		this.tsRole = tsRole;
	}

	public Date getModifiedTime() {
		return modifiedTime;
	}

	public void setModifiedTime(Date modifiedTime) {
		this.modifiedTime = modifiedTime;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Override
	public String toString() {
		return "TSUser [id=" + id + ", username=" + username + ", password=" + password + ", phone=" + phone
				+ ", email=" + email + ", gender=" + gender + ", state=" + state + ", createTime=" + createTime
				+ ", modifiedTime=" + modifiedTime + ", remark=" + remark + ", tsRole=" + tsRole + "]";
	}

	
}